<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>ShipCAD: VolumeCalc Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ShipCAD
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="structVolumeCalc-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">VolumeCalc Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>calculate the volume of underwater body  
 <a href="structVolumeCalc.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a21a672444dafcae8293fe2b8be4dc071"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a21a672444dafcae8293fe2b8be4dc071">VolumeCalc</a> (const <a class="el" href="classShipCAD_1_1Plane.html">Plane</a> &amp;wl, <a class="el" href="classShipCAD_1_1HydrostaticCalc.html">HydrostaticCalc</a> *hc)</td></tr>
<tr class="separator:a21a672444dafcae8293fe2b8be4dc071"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac075a2bc2a2a39a3e89c8b3184bea996"><td class="memItemLeft" align="right" valign="top">QVector3D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#ac075a2bc2a2a39a3e89c8b3184bea996">RotatePoint</a> (QVector3D p)</td></tr>
<tr class="separator:ac075a2bc2a2a39a3e89c8b3184bea996"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a76b82a9e1e96365185536a8fc799e235"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a76b82a9e1e96365185536a8fc799e235">CheckSubmergedBody</a> (QVector3D p, float side)</td></tr>
<tr class="separator:a76b82a9e1e96365185536a8fc799e235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae4d9b88d4538df112bdf297a3c6364b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#ae4d9b88d4538df112bdf297a3c6364b8">ProcessTriangle</a> (QVector3D p1, QVector3D p2, QVector3D p3)</td></tr>
<tr class="separator:ae4d9b88d4538df112bdf297a3c6364b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9dc91b671e810b1bd4236565a89caf05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a9dc91b671e810b1bd4236565a89caf05">run</a> ()</td></tr>
<tr class="separator:a9dc91b671e810b1bd4236565a89caf05"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aed779c2eace630d0d41239df4d371407"><td class="memItemLeft" align="right" valign="top">QVector3D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#aed779c2eace630d0d41239df4d371407">new_origin</a></td></tr>
<tr class="separator:aed779c2eace630d0d41239df4d371407"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07e433d13508d3342e7f6a50604c40d3"><td class="memItemLeft" align="right" valign="top">QVector3D&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a07e433d13508d3342e7f6a50604c40d3">keel</a></td></tr>
<tr class="separator:a07e433d13508d3342e7f6a50604c40d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6de823cbd9bb3aaedcb398a43b3187a5"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a6de823cbd9bb3aaedcb398a43b3187a5">CosTrim</a></td></tr>
<tr class="separator:a6de823cbd9bb3aaedcb398a43b3187a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36511f2f033b5488a4f677586f3e8f97"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a36511f2f033b5488a4f677586f3e8f97">SinTrim</a></td></tr>
<tr class="separator:a36511f2f033b5488a4f677586f3e8f97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f92422c5175c94b265581fd19f1da24"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a5f92422c5175c94b265581fd19f1da24">CosHeel</a></td></tr>
<tr class="separator:a5f92422c5175c94b265581fd19f1da24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1612ccb79673d6800b89a1acf46a028"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#ac1612ccb79673d6800b89a1acf46a028">SinHeel</a></td></tr>
<tr class="separator:ac1612ccb79673d6800b89a1acf46a028"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bc27914e09f86d93cb28daad90dddc1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a3bc27914e09f86d93cb28daad90dddc1">first_submerged_point</a></td></tr>
<tr class="separator:a3bc27914e09f86d93cb28daad90dddc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab639da79639aeb33b3aaeb429283f8ca"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#ab639da79639aeb33b3aaeb429283f8ca">first_point</a></td></tr>
<tr class="separator:ab639da79639aeb33b3aaeb429283f8ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b3b6d4983faa3c309ddc85981945993"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classShipCAD_1_1HydrostaticCalc.html">HydrostaticCalc</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#a5b3b6d4983faa3c309ddc85981945993">hydro_calc</a></td></tr>
<tr class="separator:a5b3b6d4983faa3c309ddc85981945993"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb7ab639ec6e5c77daf116c6eb58693a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structShipCAD_1_1HydrostaticsData.html">HydrostaticsData</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structVolumeCalc.html#acb7ab639ec6e5c77daf116c6eb58693a">data</a></td></tr>
<tr class="separator:acb7ab639ec6e5c77daf116c6eb58693a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>calculate the volume of underwater body </p>

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00679">679</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a21a672444dafcae8293fe2b8be4dc071"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">VolumeCalc::VolumeCalc </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classShipCAD_1_1Plane.html">Plane</a> &amp;&#160;</td>
          <td class="paramname"><em>wl</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classShipCAD_1_1HydrostaticCalc.html">HydrostaticCalc</a> *&#160;</td>
          <td class="paramname"><em>hc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00692">692</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a76b82a9e1e96365185536a8fc799e235"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void VolumeCalc::CheckSubmergedBody </td>
          <td>(</td>
          <td class="paramtype">QVector3D&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>side</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00717">717</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ae4d9b88d4538df112bdf297a3c6364b8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void VolumeCalc::ProcessTriangle </td>
          <td>(</td>
          <td class="paramtype">QVector3D&#160;</td>
          <td class="paramname"><em>p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QVector3D&#160;</td>
          <td class="paramname"><em>p2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QVector3D&#160;</td>
          <td class="paramname"><em>p3</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00740">740</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac075a2bc2a2a39a3e89c8b3184bea996"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QVector3D VolumeCalc::RotatePoint </td>
          <td>(</td>
          <td class="paramtype">QVector3D&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00709">709</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a9dc91b671e810b1bd4236565a89caf05"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void VolumeCalc::run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00763">763</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a5f92422c5175c94b265581fd19f1da24"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float VolumeCalc::CosHeel</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00685">685</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a6de823cbd9bb3aaedcb398a43b3187a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float VolumeCalc::CosTrim</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00683">683</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="acb7ab639ec6e5c77daf116c6eb58693a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structShipCAD_1_1HydrostaticsData.html">HydrostaticsData</a>&amp; VolumeCalc::data</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00690">690</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ab639da79639aeb33b3aaeb429283f8ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool VolumeCalc::first_point</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00688">688</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a3bc27914e09f86d93cb28daad90dddc1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool VolumeCalc::first_submerged_point</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00687">687</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a5b3b6d4983faa3c309ddc85981945993"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classShipCAD_1_1HydrostaticCalc.html">HydrostaticCalc</a>* VolumeCalc::hydro_calc</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00689">689</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a07e433d13508d3342e7f6a50604c40d3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVector3D VolumeCalc::keel</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00682">682</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="aed779c2eace630d0d41239df4d371407"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QVector3D VolumeCalc::new_origin</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00681">681</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="ac1612ccb79673d6800b89a1acf46a028"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float VolumeCalc::SinHeel</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00686">686</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a36511f2f033b5488a4f677586f3e8f97"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float VolumeCalc::SinTrim</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="hydrostaticcalc_8cpp_source.html#l00684">684</a> of file <a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>ShipCADlib/<a class="el" href="hydrostaticcalc_8cpp_source.html">hydrostaticcalc.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sun Feb 25 2018 15:36:00 for ShipCAD by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
